.class Lcom/netease/newsreader/download/AppUpdateService$UpdateThread$2;
.super Ljava/lang/Object;
.source "AppUpdateService.java"

# interfaces
.implements Lcom/netease/newsreader/download/DownloadProgressListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/netease/newsreader/download/AppUpdateService$UpdateThread;->run()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$1:Lcom/netease/newsreader/download/AppUpdateService$UpdateThread;


# direct methods
.method constructor <init>(Lcom/netease/newsreader/download/AppUpdateService$UpdateThread;)V
    .locals 0
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lcom/netease/newsreader/download/AppUpdateService$UpdateThread$2;->this$1:Lcom/netease/newsreader/download/AppUpdateService$UpdateThread;

    .line 148
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onDownloadSize(J)V
    .locals 4
    .parameter "size"

    .prologue
    .line 152
    new-instance v0, Lcom/netease/newsreader/download/AppUpdateService$DownloadBean;

    iget-object v2, p0, Lcom/netease/newsreader/download/AppUpdateService$UpdateThread$2;->this$1:Lcom/netease/newsreader/download/AppUpdateService$UpdateThread;

    invoke-static {v2}, Lcom/netease/newsreader/download/AppUpdateService$UpdateThread;->access$3(Lcom/netease/newsreader/download/AppUpdateService$UpdateThread;)Lcom/netease/newsreader/download/AppUpdateService;

    move-result-object v2

    invoke-direct {v0, v2}, Lcom/netease/newsreader/download/AppUpdateService$DownloadBean;-><init>(Lcom/netease/newsreader/download/AppUpdateService;)V

    .line 154
    .local v0, bean:Lcom/netease/newsreader/download/AppUpdateService$DownloadBean;
    iget-object v2, p0, Lcom/netease/newsreader/download/AppUpdateService$UpdateThread$2;->this$1:Lcom/netease/newsreader/download/AppUpdateService$UpdateThread;

    invoke-static {v2}, Lcom/netease/newsreader/download/AppUpdateService$UpdateThread;->access$3(Lcom/netease/newsreader/download/AppUpdateService$UpdateThread;)Lcom/netease/newsreader/download/AppUpdateService;

    move-result-object v2

    iget-object v2, v2, Lcom/netease/newsreader/download/AppUpdateService;->mDownLoader:Lcom/netease/newsreader/download/FileDownloader;

    invoke-virtual {v2}, Lcom/netease/newsreader/download/FileDownloader;->getFileSize()J

    move-result-wide v2

    iput-wide v2, v0, Lcom/netease/newsreader/download/AppUpdateService$DownloadBean;->mLength:J

    .line 155
    iput-wide p1, v0, Lcom/netease/newsreader/download/AppUpdateService$DownloadBean;->mDownloadSize:J

    .line 156
    iget-object v2, p0, Lcom/netease/newsreader/download/AppUpdateService$UpdateThread$2;->this$1:Lcom/netease/newsreader/download/AppUpdateService$UpdateThread;

    invoke-static {v2}, Lcom/netease/newsreader/download/AppUpdateService$UpdateThread;->access$3(Lcom/netease/newsreader/download/AppUpdateService$UpdateThread;)Lcom/netease/newsreader/download/AppUpdateService;

    move-result-object v2

    iget v2, v2, Lcom/netease/newsreader/download/AppUpdateService;->mAutoid:I

    iput v2, v0, Lcom/netease/newsreader/download/AppUpdateService$DownloadBean;->mAutoid:I

    .line 157
    iget-object v2, p0, Lcom/netease/newsreader/download/AppUpdateService$UpdateThread$2;->this$1:Lcom/netease/newsreader/download/AppUpdateService$UpdateThread;

    invoke-static {v2}, Lcom/netease/newsreader/download/AppUpdateService$UpdateThread;->access$3(Lcom/netease/newsreader/download/AppUpdateService$UpdateThread;)Lcom/netease/newsreader/download/AppUpdateService;

    move-result-object v2

    iget-object v2, v2, Lcom/netease/newsreader/download/AppUpdateService;->title:Ljava/lang/String;

    iput-object v2, v0, Lcom/netease/newsreader/download/AppUpdateService$DownloadBean;->mTitle:Ljava/lang/String;

    .line 159
    new-instance v1, Landroid/os/Message;

    invoke-direct {v1}, Landroid/os/Message;-><init>()V

    .line 160
    .local v1, msg:Landroid/os/Message;
    const/4 v2, 0x1

    iput v2, v1, Landroid/os/Message;->what:I

    .line 161
    iput-object v0, v1, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 162
    iget-object v2, p0, Lcom/netease/newsreader/download/AppUpdateService$UpdateThread$2;->this$1:Lcom/netease/newsreader/download/AppUpdateService$UpdateThread;

    invoke-static {v2}, Lcom/netease/newsreader/download/AppUpdateService$UpdateThread;->access$2(Lcom/netease/newsreader/download/AppUpdateService$UpdateThread;)Landroid/os/Handler;

    move-result-object v2

    invoke-virtual {v2, v1}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 163
    return-void
.end method

.method public onErrorListener(Ljava/lang/String;)V
    .locals 2
    .parameter "ex"

    .prologue
    .line 167
    iget-object v0, p0, Lcom/netease/newsreader/download/AppUpdateService$UpdateThread$2;->this$1:Lcom/netease/newsreader/download/AppUpdateService$UpdateThread;

    invoke-static {v0}, Lcom/netease/newsreader/download/AppUpdateService$UpdateThread;->access$2(Lcom/netease/newsreader/download/AppUpdateService$UpdateThread;)Landroid/os/Handler;

    move-result-object v0

    const/4 v1, 0x2

    invoke-virtual {v0, v1}, Landroid/os/Handler;->sendEmptyMessage(I)Z

    .line 168
    return-void
.end method
